package com.example.robertluozizhao.java.design.absfactory;

import com.example.robertluozizhao.java.design.factory.Hobby;

/**
 *
 * 抽象工厂（创建型）
 * 使用场景：工厂方法模式的升级，符合开闭原则。
 *
 * Created by Lzz on 8/21/2019.
 */

public class TestResult {
    public static void main(String args[]) {
        SaBeiNingFactory saBeiNingFactory = new SaBeiNingFactory();
        Hobby provide = saBeiNingFactory.provide();
        provide.say();
    }
}
